<?php

class Nav {
	var $label;
	var $page;
	var $subNav;

	function Nav ($label, $page, $subNav = 0)
	{
		$this->label = $label;
		$this->page = $page;
		if ($subNav == 0 || !is_array($subNav))
		{
			$this->subNav = array();
		}
		else
		{
			$this->subNav = $subNav;
		}
	}
}

$__NAV = array(
		"home" => new Nav("Home", "index",
			array(
				new Nav("Home", "index"),
				new Nav("Change Password", "password"),
			)),
		"news" => new Nav("News", "searchNews",
			array(
				new Nav("Search", "searchNews"),
				new Nav("New News Item", "news"),
			)),
		"contacts" => new Nav("Contacts", "searchContacts",
			array(
				new Nav("Search", "searchContacts"),
				new Nav("New Contact", "contact"),
				new Nav("E-mail Fan List", "fanList"),
			)),
		"events" => new Nav("Events", "searchEvents",
			array(
				new Nav("Search", "searchEvents"),
				new Nav("New Event", "event"),
			)),
		"tour" => new Nav("Tour", "tour"),
		"songs" => new Nav("Songs", "searchSongs",
			array(
				new Nav("Search", "searchSongs"),
				new Nav("New Song", "song"),
			)),
		"income" => new Nav("Income", "income",
			array(
				new Nav("Summary", "income"),
				new Nav("New Inventory", "inventory"),
				new Nav("New Sale", "sale"),
			)),
		"expenses" => new Nav("Expenses", "expenses",
			array(
				new Nav("Summary", "expenses"),
				new Nav("New Expense", "expense"),
			)),
		"admin" => new Nav("Admin", "admin",
			array(
				new Nav("User", "admin"),
				new Nav("Locations", "location"),
			)),

);

?>
